﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class CMS_LoginForm : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Usas.Common.Cms.CurrentInfo _cinfo = new Usas.Common.Cms.CurrentInfo();
        
        if (!IsPostBack)
        {
            if (_cinfo.GetEmpId() != "")
            {
            
                logout.Visible = true;

                LoginStatus.Text = "已登陆";

                litName.Text = "员工编号：" + _cinfo.GetEmpId() + "＜" + _cinfo.GetEmpName() + "＞";
               
            }

        }
    }

    protected void logout_Click(object sender, EventArgs e)
    {
        Session.Abandon();
        Response.Redirect("../InfoLogin.aspx");
    }


}
